package common

import (
	"gitee.com/hexug/go-tools/ioc/log"
	"gitee.com/hexug/go-tools/logger"
)

func InitLog(l *log.Log) {
	logger.PrintConsole = l.PrintConsole
	logger.Level = l.Level
	logger.SaveFile = l.SaveFile
	logger.DirPath = l.SaveFileDir
	logger.ShowFullPath = l.ShowFullPath
	logger.Separator = l.Separator
	logger.PathMsgSeparator = l.PathMsgSeparator
	logger.UseJSONFormat = l.UseJSONFormat
	logger.Update()
}
